import request from '@/utils/request'

export const getArticleList = ({ current, pageSize }) => {
  return request.get('/admin/interview/query', {
    params: { current, pageSize }
  })
}

export const createArticle = (obj) => {
  return request.post('/admin/interview/create', obj)
}

export const deleteArticle = (id) => request.delete('/admin/interview/remove', { data: { id } })

export const getSingleDetail = (id) => request.get('/admin/interview/show', { params: { id } })

export const updateArticle = (data) => {
  return request.put('/admin/interview/update', data)
}
